package com.fatgirl.utils
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;

	/**
	 * bitmapData 代理 
	 * @author iceman
	 * 
	 */
	public class BitmapDataProxy
	{
		private var m_bitmapData:BitmapData;
		public function BitmapDataProxy(_bitmapData:BitmapData)
		{
			m_bitmapData = _bitmapData;
		}
		public function getBitmapData():BitmapData
		{
			return m_bitmapData;
		}
		public function setBitmapData(_obj:Object):void
		{
			if(_obj is Bitmap)
			{
				m_bitmapData = (_obj as Bitmap).bitmapData;
				return;
			}
			if(_obj is BitmapData)
			{
				m_bitmapData = _obj as BitmapData;
				return;
			}
			ftrace(this,"setBitmapData方法参数 无法从其获取bitmapData，",_obj);
			
		}
	}
}